/*
*  Copyright 2019-2025 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.transfer.rest;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.RequiredArgsConstructor;
import me.zhengjie.annotation.Log;
import me.zhengjie.modules.transfer.domain.TransferIc58;
import me.zhengjie.modules.transfer.domain.dto.TransferIc58QueryCriteria;
import me.zhengjie.modules.transfer.domain.dto.TransferIc60QueryCriteria;
import me.zhengjie.modules.transfer.domain.dto.TransferIc66QueryCriteria;
import me.zhengjie.modules.transfer.service.TransferIc58Service;
import me.zhengjie.modules.transfer.service.TransferIc60Service;
import me.zhengjie.modules.transfer.service.TransferIc66Service;
import me.zhengjie.utils.PageResult;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
* @author lzw
* @date 2025-05-26
**/
@RestController
@RequiredArgsConstructor
@Api(tags = "pai")
@RequestMapping("/api/transferPrint")
public class TransferPrintController {

    private final TransferIc66Service transferIc66Service;
    private final TransferIc60Service transferIc60Service;



    @GetMapping("/queryTransferIc66")
    @ApiOperation("查询pai")
    public ResponseEntity<PageResult> queryTransferIc66(TransferIc66QueryCriteria criteria){
        Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize());
        return new ResponseEntity<>(transferIc66Service.queryAll(criteria,page),HttpStatus.OK);
    }

    @GetMapping("/queryTransferIc60")
    @ApiOperation("查询pai")
    public ResponseEntity<PageResult> queryTransferIc60(TransferIc60QueryCriteria criteria){
        Page<Object> page = new Page<>(criteria.getPage(), criteria.getSize());
        return new ResponseEntity<>(transferIc60Service.queryAll(criteria,page),HttpStatus.OK);
    }

}
